#ifndef _SPLIT_LOG
#define _SPLIT_LOG

#include "generation_name.hpp"

class Split_Log
{
  string limit;
  string name_file;

public:
  Split_Log(string log,string l);

  void set_limit(string l);
  void set_name_file(string f);

  string get_limit();
  string get_name_file();

  unsigned int count_limit();

  void separet_log();
  void split_by_time();

  ~Split_Log()
  {};

private:
  bool have_limit(string lign)
  {
    for(unsigned int cpt=0 ; cpt < lign.length() ; ++cpt)
      {
	if(lign.compare(cpt,limit.length(),limit) == 0)
	  return true;
      }
    return false;
  };
};

#endif
